/* table5.do '/home/chansen/work/migration/stata' CBH 10/29/01 */
/* Uses distance to Pristina instead of to Kosovo */

clear
set memory 100m
set more off
log using "DIRECTORY HERE/table5.log" ,replace

cd "DIRECTORY HERE"

use rsa8399n.dta

sort country

drop _merge

merge country using pristina

set matsize 100


/* Limit sample to only those with non-missing EU share */
drop if lneu_lf1==.

/* Generate instruments using distance from Pristina */
gen nowarpr1=nowar*Sardis1/1000
gen nbospr1=nwbosnia*Sardis1/1000
gen nkospr1=nwkosovo*prdis1/1000

gen nowarpr2=nowar*Sardis2/1000
gen nbospr2=nwbosnia*Sardis2/1000
gen nkospr2=nwkosovo*prdis2/1000

/* Generate pre-period spec. check dummy */
gen pre90=(prdis1*(trend>=1988 & trend<=1999))/1000

/* First stage regressions using 1983-99 period with Log Share of NN from Non-EU Countries */


/* Unweighted OLS Regressions using 1983-99 Sample for Young Men with and without Country Trends -- Excluded instruments distance to ports */

reg lnf_lf1 d84 d85 d86 d87 d88 d89 d90 d91 d92 d93 d94 d95 d96 d97 d98 d99 be dk de91 de_91 gr es fr ie it lu nl at pt fi se uk no is ch nbospr1 nowarpr1 nkospr1 if (dman==1 & dold==0 & is==0), robust
test nbospr1 nowarpr1 nkospr1

reg lnf_lf1 d84 d85 d86 d87 d88 d89 d90 d91 d92 d93 d94 d95 d96 d97 d98 d99 be dk de91 de_91 gr es fr ie it lu nl at pt fi se uk no is ch nbospr1 nowarpr1 nkospr1 pre90 if (dman==1 & dold==0 & is==0), robust
test nbospr1 nowarpr1 nkospr1

reg lnf_lf1 d84 d85 d86 d87 d88 d89 d90 d91 d92 d93 d94 d95 d96 d97 d98 d99 be dk de91 de_91 gr es fr ie it lu nl at pt fi se uk no is ch trendbe trendk trende91 trend_91 trendgr trendes trendfr trendie trendit trendlu trendnl trendat trendpt trendfi trendse trenduk trendno trendis trendch nbospr1 nowarpr1 nkospr1 if (dman==1 & dold==0 & is==0), robust
test nbospr1 nowarpr1 nkospr1

reg lnf_lf1 d84 d85 d86 d87 d88 d89 d90 d91 d92 d93 d94 d95 d96 d97 d98 d99 be dk de91 de_91 gr es fr ie it lu nl at pt fi se uk no is ch trendbe trendk trende91 trend_91 trendgr trendes trendfr trendie trendit trendlu trendnl trendat trendpt trendfi trendse trenduk trendno trendis trendch nbospr1 nowarpr1 nkospr1 pre90 if (dman==1 & dold==0 & is==0), robust
test nbospr1 nowarpr1 nkospr1

/* Unweighted OLS Regressions using 1983-99 Sample for Young Men with and without Country Trends -- Excluded instruments distance to capitals */

reg lnf_lf1 d84 d85 d86 d87 d88 d89 d90 d91 d92 d93 d94 d95 d96 d97 d98 d99 be dk de91 de_91 gr es fr ie it lu nl at pt fi se uk no is ch nbospr2 nowarpr2 nkospr2 if (dman==1 & dold==0 & is==0), robust
test nbospr2 nowarpr2 nkospr2

reg lnf_lf1 d84 d85 d86 d87 d88 d89 d90 d91 d92 d93 d94 d95 d96 d97 d98 d99 be dk de91 de_91 gr es fr ie it lu nl at pt fi se uk no is ch nbospr2 nowarpr2 nkospr2 pre90 if (dman==1 & dold==0 & is==0), robust
test nbospr2 nowarpr2 nkospr2

reg lnf_lf1 d84 d85 d86 d87 d88 d89 d90 d91 d92 d93 d94 d95 d96 d97 d98 d99 be dk de91 de_91 gr es fr ie it lu nl at pt fi se uk no is ch trendbe trendk trende91 trend_91 trendgr trendes trendfr trendie trendit trendlu trendnl trendat trendpt trendfi trendse trenduk trendno trendis trendch nbospr2 nowarpr2 nkospr2 if (dman==1 & dold==0 & is==0), robust
test nbospr2 nowarpr2 nkospr2

reg lnf_lf1 d84 d85 d86 d87 d88 d89 d90 d91 d92 d93 d94 d95 d96 d97 d98 d99 be dk de91 de_91 gr es fr ie it lu nl at pt fi se uk no is ch trendbe trendk trende91 trend_91 trendgr trendes trendfr trendie trendit trendlu trendnl trendat trendpt trendfi trendse trenduk trendno trendis trendch nbospr2 nowarpr2 nkospr2 pre90 if (dman==1 & dold==0 & is==0), robust
test nbospr2 nowarpr2 nkospr2



/* First stage regressions using 1983-99 period with Log Share of NN from EU Countries */


/* Unweighted OLS Regressions using 1983-99 Sample for Young Men with and without Country Trends -- Excluded instruments distance to ports */

reg lneu_lf1 d84 d85 d86 d87 d88 d89 d90 d91 d92 d93 d94 d95 d96 d97 d98 d99 be dk de91 de_91 gr es fr ie it lu nl at pt fi se uk no is ch nbospr1 nowarpr1 nkospr1 if (dman==1 & dold==0 & is==0), robust
test nbospr1 nowarpr1 nkospr1

reg lneu_lf1 d84 d85 d86 d87 d88 d89 d90 d91 d92 d93 d94 d95 d96 d97 d98 d99 be dk de91 de_91 gr es fr ie it lu nl at pt fi se uk no is ch nbospr1 nowarpr1 nkospr1 pre90 if (dman==1 & dold==0 & is==0), robust
test nbospr1 nowarpr1 nkospr1

reg lneu_lf1 d84 d85 d86 d87 d88 d89 d90 d91 d92 d93 d94 d95 d96 d97 d98 d99 be dk de91 de_91 gr es fr ie it lu nl at pt fi se uk no is ch trendbe trendk trende91 trend_91 trendgr trendes trendfr trendie trendit trendlu trendnl trendat trendpt trendfi trendse trenduk trendno trendis trendch nbospr1 nowarpr1 nkospr1 if (dman==1 & dold==0 & is==0), robust
test nbospr1 nowarpr1 nkospr1

reg lneu_lf1 d84 d85 d86 d87 d88 d89 d90 d91 d92 d93 d94 d95 d96 d97 d98 d99 be dk de91 de_91 gr es fr ie it lu nl at pt fi se uk no is ch trendbe trendk trende91 trend_91 trendgr trendes trendfr trendie trendit trendlu trendnl trendat trendpt trendfi trendse trenduk trendno trendis trendch nbospr1 nowarpr1 nkospr1 pre90 if (dman==1 & dold==0 & is==0), robust
test nbospr1 nowarpr1 nkospr1


/* Unweighted OLS Regressions using 1983-99 Sample for Young Men with and without Country Trends -- Excluded instruments distance to capitals */

reg lneu_lf1 d84 d85 d86 d87 d88 d89 d90 d91 d92 d93 d94 d95 d96 d97 d98 d99 be dk de91 de_91 gr es fr ie it lu nl at pt fi se uk no is ch nbospr2 nowarpr2 nkospr2 if (dman==1 & dold==0 & is==0), robust
test nbospr2 nowarpr2 nkospr2

reg lneu_lf1 d84 d85 d86 d87 d88 d89 d90 d91 d92 d93 d94 d95 d96 d97 d98 d99 be dk de91 de_91 gr es fr ie it lu nl at pt fi se uk no is ch nbospr2 nowarpr2 nkospr2 pre90 if (dman==1 & dold==0 & is==0), robust
test nbospr2 nowarpr2 nkospr2

reg lneu_lf1 d84 d85 d86 d87 d88 d89 d90 d91 d92 d93 d94 d95 d96 d97 d98 d99 be dk de91 de_91 gr es fr ie it lu nl at pt fi se uk no is ch trendbe trendk trende91 trend_91 trendgr trendes trendfr trendie trendit trendlu trendnl trendat trendpt trendfi trendse trenduk trendno trendis trendch nbospr2 nowarpr2 nkospr2 if (dman==1 & dold==0 & is==0), robust
test nbospr2 nowarpr2 nkospr2

reg lneu_lf1 d84 d85 d86 d87 d88 d89 d90 d91 d92 d93 d94 d95 d96 d97 d98 d99 be dk de91 de_91 gr es fr ie it lu nl at pt fi se uk no is ch trendbe trendk trende91 trend_91 trendgr trendes trendfr trendie trendit trendlu trendnl trendat trendpt trendfi trendse trenduk trendno trendis trendch nbospr2 nowarpr2 nkospr2 pre90 if (dman==1 & dold==0 & is==0), robust
test nbospr2 nowarpr2 nkospr2


log close




